Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 4 - Dialog Manager Reference / Dialog Manager Resources


The Dialog Control Font Table Resource

NEW WITH THE APPEARANCE MANAGER

Your application can specify the initial font settings for all controls in a dialog box or alert box by creating a dialog control font table resource of type 'dftb' with the same resource ID as the item list resource ('DITL'). When an embedding hierarchy is established in a dialog box, the dialog control font table resource should be used instead of the item color table ('ictb') resource, since edit and static text dialog items become controls in an embedding hierarchy.

The control font style information in the dialog control font table resource is automatically read in (along with the 'DITL') by the Dialog Manager. When the 'dftb' resource is read in, the control font styles are set, and the resource is marked purgeable. Figure 4-4 shows the format of a compiled dialog control font table resource.


Figure 4-4 Structure of a compiled dialog control font table ('dftb') resource

A compiled version of a 'dftb' resource contains the following elements:

Figure 4-5 shows the format of a compiled dialog control font entry in a 'dftb' resource.


Figure 4-5 Structure of dialog control font entry in a 'dftb' resource

Each entry in a 'dftb' resource corresponds to a dialog item and contains the following elements:


Subtopics
Dialog Font Flag Constants

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998